package rad.framework.mda.generator.template.main.webapp.webinf;

public class JbossApp
{
  protected static String nl;
  public static synchronized JbossApp create(String lineSeparator)
  {
    nl = lineSeparator;
    JbossApp result = new JbossApp();
    nl = null;
    return result;
  }

  public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
  protected final String TEXT_1 = "<jboss-app>" + NL + "      <!--" + NL + "      <loader-repository> " + NL + "      rad.framework:loader=";
  protected final String TEXT_2 = NL + "      </loader-repository>" + NL + "      --> " + NL + "</jboss-app> ";

  public String generate(Object argument)
  {
    final StringBuffer stringBuffer = new StringBuffer();
    

    org.eclipse.uml2.uml.Model uml2Model = (org.eclipse.uml2.uml.Model) argument;
    stringBuffer.append(TEXT_1);
    stringBuffer.append(uml2Model.getName());
    stringBuffer.append(TEXT_2);
    return stringBuffer.toString();
  }
}
